package core.events
{
	import flash.events.Event;

	public class PutIoEvent extends Event
	{	
		public static const PUT_IO_RESULT_EVENT:String = 'putIoResultEvent';
		public static const PUT_IO_ERROR_EVENT:String = 'putIoErrorEvent';
		
		private var _loaderId:String;		
		
		private var _id:String;
		public var userName:String;
		
		public function PutIoEvent(type:String, _bubbles:Boolean = false, _cancelable:Boolean = false)
		{
			super(type, _bubbles, _cancelable);			
		}
		
		/**
		 * Get Put.io user ID
		 */		
		public function get id():String
		{
			return _id;
		}

		/**
		 * Set Put.io user ID
		 * 
		 * @param id User ID
		 */			
		public function set id(id:String):void
		{
			_id = id;
		}
		
		public function get loaderId():String
		{
			return _loaderId;
		}
		
		public function set loaderId(value:String):void
		{
			_loaderId = value;
		}		

		public override function toString():String
		{
			return 'id='+id+' username='+userName;
		}
	}
}